package com.zhixi;

import org.apache.ibatis.executor.Executor;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.concurrent.*;

@SpringBootTest
class SpringbootSpringcacheRedisApplicationTests {



}


@SpringBootTest
/**
 *
 */
public class MyCallable implements Callable<Integer> {
    @Override
    public Integer call() {
        System.out.println(Thread.currentThread().getName() + " call()方法执行中...");
        return 1;
    }

    public static void main(String[] args) {
       new ThreadPoolExecutor(5,Integer.MAX_VALUE,
                0L, TimeUnit.MILLISECONDS,
                new LinkedBlockingQueue<Runnable>());
    }   
}
